package com.bussiness.system.dao;

import com.bussiness.system.model.MyRoleAuthEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MyRoleAuthDao {
    int deleteByPrimaryKey(Long id);

    int deleteByPrimaryRoleId(Long roleId);

    int insert(MyRoleAuthEntity record);

    int insertSelective(MyRoleAuthEntity record);

    void insertListSelective(List<MyRoleAuthEntity> record) throws Exception;

    MyRoleAuthEntity selectByPrimaryKey(Long id);

    List<MyRoleAuthEntity> selectByRoleId(Long RoleId);

    int updateByPrimaryKeySelective(MyRoleAuthEntity record);

    int updateByPrimaryKey(MyRoleAuthEntity record);
}